<h3>修改密码</h3>

<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
  <%= devise_error_messages! %>
  <%= f.hidden_field :reset_password_token %>

  <div><%= f.label :password, "新密码" %><br />
  <%= f.password_field :password %></div>

  <div><%= f.label :password_confirmation, "确认新密码" %><br />
  <%= f.password_field :password_confirmation %></div>

  <div><%= f.submit "修改我的密码" %></div>
<% end %>

  <%= link_to '取消',back_url,:class=>"action_back" %>